import { MockMethod } from 'vite-plugin-mock'


export default [
  {
    url: '/mock/login',
    method: 'post',
    timeout: 600,
    response: (res: any) => {
      console.log('2222222', res)
      return {
        code: 200,
        message: '登录成功',
        data: {
          token: '123456asjdlg',
          name: '测试用户',
          username: 'test'
        }
      }
    }
  }
] as MockMethod[]